PICTools Programmer's Reference
Correct Inverse Text

Finds and corrects areas of a 1-bit image containing inverse text.

InverseBefore2  →  Description: Description: Description: InverseAfter2

The uncompressed image to be processed must reside in the Get Queue prior to REQ_EXEC. Typically, the image will be fully contained in the Get Queue, but that is not a requirement. The output image will be placed into the Put Queue during REQ_EXEC.

Padding pixels present at the end of each line may be modified by this operation.

This operation relies primarily on three parameters to select the areas to remove: minimum area width, minimum area height, and maximum dot size. All three criteria must be true of an area for it to be removed.

In addition to placing an output image into the Put Queue, this operation stores some output information into the PIC_PARM structure in the following locations.

CountOfFeaturesDetected is set, during REQ_EXEC, to the number of areas removed.

OutputStride is set, during REQ_INIT and REQ_EXEC, to the image line width in bytes including padding at the end of the line.

BiOut is set, during REQ_INIT and REQ_EXEC, to the attributes of the output image. Since this operation does not adjust the size of the image, BiOut will be set to a copy of the Head structure within PIC_PARM.

 

 


©2022. Accusoft Corporation. All Rights Reserved.

Send Feedback